package com.scau.hwadee.examination.service;

import com.alibaba.fastjson.JSONArray;
import com.github.pagehelper.PageInfo;
import com.scau.hwadee.examination.entity.Textbook;
import com.scau.hwadee.examination.entity.Textbookadjustmentapplication;

/**
 * @author YHX
 * @date 2019/7/31 16:06
 * description
 */
public interface TextbookService {

  /**
   * @return int
   * @author YHX
   * @description 调整教材
   * @date 16:19 2019/8/4
   * @Param [jsonArray]
   **/
  int adjustTextbook(JSONArray jsonArray) throws Exception;

  /**
   * @return int
   * @author YHX
   * @description
   * @date 16:19 2019/8/4
   * @Param [t]
   **/
  int adjustTextbookBySchool(Textbookadjustmentapplication t);

  /**
   * @return com.github.pagehelper.PageInfo<com.scau.hwadee.examination.entity.Textbook>
   * @author YHX
   * @description 获取全部的教材信息
   * @date 11:55 2019/8/6
   * @Param []
   **/
  PageInfo<Textbook> getAllTextbook(int pageNum, int pageSize);
}
